package view;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

@SuppressWarnings("serial")
public class QuickViewAccount extends JPanel {

	/**
	 * Create the panel.
	 * @param account 
	 */
	public QuickViewAccount(String account) {
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{84, 78, 97, 79, 70, 70, 0};
		gridBagLayout.rowHeights = new int[]{50, 50, 0};
		gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
		setLayout(gridBagLayout);
		
		JLabel lblAccountName = new JLabel(account);
		GridBagConstraints gbc_lblAccountName = new GridBagConstraints();
		gbc_lblAccountName.gridheight = 2;
		gbc_lblAccountName.insets = new Insets(0, 0, 5, 5);
		gbc_lblAccountName.gridx = 0;
		gbc_lblAccountName.gridy = 0;
		add(lblAccountName, gbc_lblAccountName);
		
		JButton btnEinkommen = new JButton("Einkommen");
		GridBagConstraints gbc_btnEinkommen = new GridBagConstraints();
		gbc_btnEinkommen.gridheight = 2;
		gbc_btnEinkommen.fill = GridBagConstraints.HORIZONTAL;
		gbc_btnEinkommen.insets = new Insets(0, 0, 5, 5);
		gbc_btnEinkommen.gridx = 1;
		gbc_btnEinkommen.gridy = 0;
		add(btnEinkommen, gbc_btnEinkommen);
		
		JButton btnAusgabe = new JButton("Ausgabe");
		GridBagConstraints gbc_btnAusgabe = new GridBagConstraints();
		gbc_btnAusgabe.gridheight = 2;
		gbc_btnAusgabe.fill = GridBagConstraints.HORIZONTAL;
		gbc_btnAusgabe.insets = new Insets(0, 0, 5, 5);
		gbc_btnAusgabe.gridx = 2;
		gbc_btnAusgabe.gridy = 0;
		add(btnAusgabe, gbc_btnAusgabe);
		
		JButton button = new JButton(">");
		GridBagConstraints gbc_button = new GridBagConstraints();
		gbc_button.fill = GridBagConstraints.VERTICAL;
		gbc_button.gridheight = 2;
		gbc_button.insets = new Insets(0, 0, 5, 5);
		gbc_button.anchor = GridBagConstraints.EAST;
		gbc_button.gridx = 3;
		gbc_button.gridy = 0;
		add(button, gbc_button);
		
		JLabel lblNumbers = new JLabel("numbers");
		GridBagConstraints gbc_lblNumbers = new GridBagConstraints();
		gbc_lblNumbers.insets = new Insets(0, 0, 5, 5);
		gbc_lblNumbers.gridx = 4;
		gbc_lblNumbers.gridy = 0;
		add(lblNumbers, gbc_lblNumbers);
		
		JLabel lblMore = new JLabel("more");
		GridBagConstraints gbc_lblMore = new GridBagConstraints();
		gbc_lblMore.insets = new Insets(0, 0, 5, 0);
		gbc_lblMore.gridx = 5;
		gbc_lblMore.gridy = 0;
		add(lblMore, gbc_lblMore);
		
		JLabel lblMore_1 = new JLabel("more");
		GridBagConstraints gbc_lblMore_1 = new GridBagConstraints();
		gbc_lblMore_1.insets = new Insets(0, 0, 0, 5);
		gbc_lblMore_1.gridx = 4;
		gbc_lblMore_1.gridy = 1;
		add(lblMore_1, gbc_lblMore_1);
		
		JLabel lblMore_2 = new JLabel("more");
		GridBagConstraints gbc_lblMore_2 = new GridBagConstraints();
		gbc_lblMore_2.gridx = 5;
		gbc_lblMore_2.gridy = 1;
		add(lblMore_2, gbc_lblMore_2);

	}

}
